﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Unity.Configuration;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            var container = new UnityContainer();

            container.AddExtension(new UnityDefaultInterceptorExtension());
            var section = ConfigurationManager.GetSection("unity") as UnityConfigurationSection;
            section.Configure(container);

            var instance = container.Resolve<IInterface>();
            instance.Exec();
        }
    }
}
